<template>
  <div>
    <el-button @click="go('plan')">计划管理</el-button>
    <el-button @click="go('production')">生产管理</el-button>
    <el-button @click="go('resource')">资源管理</el-button>
    <el-button @click="go('plant')">厂区管理</el-button>
  </div>
</template>

<script>
export default {
  name:'',
  data () {
    return {
      
    };
  },
  methods:{
    go(val){
      switch (val){
        case 'plan':
          this.$router.push('/plan');
          break;
        case 'production':
          this.$router.push('/production');
          break;
        case 'resource':
          this.$router.push('/resource');
          break;
        case 'plant':
          this.$router.push('/plant');
          break;
        default:
          break;
      }
    }
  }
}

</script>